import request from '@/utils/request'
import { CategoryResponse } from './type'

export const getFirstCategory = () => {
  return request.get<any, CategoryResponse>('/category')
}

export const getSecondCategory = (id: number) => {
  return request.get<any, CategoryResponse>('/category', {
    params: {
      id,
    },
  })
}

export const getThirdCategory = (id: number) => {
  return request.get<any, CategoryResponse>('/category', {
    params: {
      id,
    },
  })
}
